package actiuniTest;

	import static org.junit.Assert.assertEquals;
	import static org.junit.Assert.assertTrue;
	import actiuni.Command;
	import actiuni.Paste;

	import javax.swing.JMenuItem;

	import org.junit.Test;

	import java.awt.Toolkit;
	import java.awt.datatransfer.Clipboard;
	import java.awt.datatransfer.DataFlavor;
	import java.awt.datatransfer.Transferable;

	public class PasteTest{
		
		@Test
		public void testTitle(){
			JMenuItem c = new Paste("Paste");
			assertEquals("Name Should be Paste","Paste",c.getText());
		}
		
		
		@Test
		public void testInstance(){
			Command c = new Paste();
			assertEquals("Should be Paste","Paste",c.toString());
			assertTrue("Should be instance of JMenuItem",c instanceof JMenuItem);
		}
	}
